package com.cloudfast.utils.word;

import java.util.HashMap;
import java.util.Map;

import com.cloudfast.utils.ImgBase64;

public class TemplateParams {

    private Map<String, Object> params = null;

    public void addParams(String key, Object value) {
        if (params == null) {
            params = new HashMap<>();
        }
        params.put(key, value);
    }

    public void addImage(String key, String imagePath) {
        if (params == null) {
            params = new HashMap<>();
        }
        params.put(key, ImgBase64.getImgStr(imagePath));
    }

    public Map<String, Object> getParams() {
        return params;
    }
}
